package com.hzlx.badGoods.feign;

import com.hzlx.ProductsDto;
import com.hzlx.ResultDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "baseDataService",
        value = "base-data-service")
public interface BaseDataService {
    @GetMapping(value = "/base/products/res/{productId}")
    public ResultDto<ProductsDto> getResInfo(@PathVariable("productId") Long productId);
}
